package com.zhoufeng.udp.service;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class UDPListener  implements ServletContextListener{

	@Override
	public void contextDestroyed(ServletContextEvent arg0) {
		
	}

	@Override
	public void contextInitialized(ServletContextEvent arg0) {
		System.out.println("UDP启动......");
		Thread thread = new Thread(new UDPServer(5000));
		thread.start();
		System.out.println("UDP启动成功......");
	}

}
